--- /dev/null
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>CFBundleDevelopmentRegion</key>
+ <string>English</string>
+ <key>CFBundleExecutable</key>
+ <string>MacGPSBabel</string>
+ <key>CFBundleIconFile</key>
+ <string>mgb.icns</string>
+ <key>CFBundleIdentifier</key>
+ <string>com.gpsbabel.MacGPSBabel</string>
+ <key>CFBundleInfoDictionaryVersion</key>
+ <string>6.0</string>
+ <key>CFBundlePackageType</key>
+ <string>APPL</string>
+ <key>CFBundleSignature</key>
+ <string>mGPS</string>
+ <key>CFBundleVersion</key>
+ <string>1.2.8-beta20060219</string>
+ <key>NSAppleScriptEnabled</key>
+ <string>YES</string>
+ <key>NSMainNibFile</key>
+ <string>MainMenu</string>
+ <key>NSPrincipalClass</key>
+ <string>NSApplication</string>
+</dict>
+</plist>
end will open
-on will close theObject
+-- to work around the NSReceiverEvaluationScriptError we need to use should close instead of will close
+on should close theObject
log "will close - " & name of theObject
if theObject is window "SelectGPS" then
-- store user defaults for this window
-- unhide MacGPSBabel window
set visible of window "MacGPSBabel" to true
end if
-end will close
+
+ if theObject is window "filterWindow" then
+ set the title of button "filterButton" of window "MacGPSBabel" to "Setup Filters"
+ end if
+
+ -- workarund NSReceiverEvaluationScriptError bug
+ set visible of theObject to false
+ return false
+
+end should close
-- handler for the File>Open menu item
set the title of button "filterButton" of window "MacGPSBabel" to "Setup Filters"
end if
end showFilters
+
-- create the filter code
on applyFilters()
set filterText to ""